package com.orange.conf.entity;

import java.util.Properties;

public class ConfigEntity {

	private static String coreSite;
	private static String hdfsSite;
	private static String mapredDefault;
	private static boolean if_kerberos;
	private static String kerbeorsUser;
	private static String kerbeorsConf;
	private static String kerbeorskeytab;

	public static void init(Properties pro){
		coreSite = pro.getProperty("core-site");
		hdfsSite = pro.getProperty("hdfs-site");
		mapredDefault = pro.getProperty("mapred-default");
		if_kerberos = Boolean.valueOf(pro.getProperty("if_kerberos"));
		kerbeorsUser = pro.getProperty("kerbeorsUser");
		kerbeorsConf = pro.getProperty("kerbeorsConf");
		kerbeorskeytab = pro.getProperty("kerbeorskeytab");
	}

	public static String getCoreSite() {
		return coreSite;
	}

	public static String getHdfsSite() {
		return hdfsSite;
	}

	public static String getMapredDefault() {
		return mapredDefault;
	}

	public static boolean isIf_kerberos() {
		return if_kerberos;
	}

	public static String getKerbeorsUser() {
		return kerbeorsUser;
	}

	public static String getKerbeorsConf() {
		return kerbeorsConf;
	}

	public static String getKerbeorskeytab() {
		return kerbeorskeytab;
	}
	
}
